package week0401;

import java.util.Arrays;




public class Main5 {
	public static void main(String[] args) {
		System.out.println("OK");
	}

}


class Car{
	private String name;
	private CarDriver driver;
	private int[] scores;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public CarDriver getDriver() {
		return driver;
	}
	public void setDriver(CarDriver driver) {
		this.driver = driver;
	}
	public int[] getScores() {
		return scores;
	}
	public void setScores(int[] scores) {
		this.scores = scores;
	}
	@Override
	public String toString() {
		return "Car [name=" + name + ", driver=" + driver + ", scores="
				+ Arrays.toString(scores) + "]";
	}
	public Car() {
	}
	@Override
	public Car clone() throws CloneNotSupportedException {
		// TODO Auto-generated method stub
		Car car=new Car() ;
		String s=name;
		car.setName(s);
		int[] scores1=car.getScores();
		int[] scores2=new int[scores1.length];
		for (int i = 0; i < scores.length; i++) {
			scores2[i]=scores1[i];
		}
		car.setScores(scores2);
		CarDriver drivers=new CarDriver();
		drivers.setName(driver.getName());
		car.setDriver(drivers);
		return car;
		
	}
}

class CarDriver {
    private String name;
    public CarDriver() {}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Override
	public String toString() {
		return "CarDriver [name=" + name + "]";
	}
    
}